const mongoose = require('mongoose');
const filmAndCinemasSchema = new mongoose.Schema({
    cinema: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'cinemasModel'
    },
    film: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'filmsModel'
    },
    schedule: Array
});

module.exports = mongoose.model("filmAndCinemasModel", filmAndCinemasSchema, "filmAndCinemas");